package com.lightsaber.trade.cloth.rest.resources;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.lightsaber.trade.cloth.rest.data.ProgrammeDetails;
import com.lightsaber.trade.cloth.rest.data.ProgrammePlannedPlaces;

public class RestfulResourcesImpl implements RestfulResources {
    private final static Logger log = LoggerFactory.getLogger(RestfulHppCore.class);

    @Override
    public ProgrammeDetails getProgrammeDetails(final int launchYear, final String launchVersion,
            final String programmeCode) {
        log.error("RestfulResourcesImpl.getProgrammeDetails");
        RestfulHppCore hppCore = new RestfulHppCore();
        return hppCore.getProgrammeDetails(launchYear, launchVersion, programmeCode);

    }

    @Override
    public ProgrammePlannedPlaces getProgrammePlannedPlaces(final int planningExercise,
            final int planYear, final int yearOfStudy, final String programmeCode,
            final int launchYear, final String launchVersion, final String operatingCampus,
            final String operatingDepartment) {
        log.error("getProgrammePlannedPlaces");
        RestfulHppCore hppCore = new RestfulHppCore();
        return hppCore.getProgrammePlannedPlaces(planningExercise, planYear, yearOfStudy,
                programmeCode, launchYear, launchVersion, operatingCampus, operatingDepartment);
    }

    @Override
    public String sayHi() {
        return "13579";
    }
}
